package itheima.com.zuoye.d03;

public class Test {
    public static void main(String[] args) {
        automobile bmw = new BMW();
        automobile mercedes = new MercedesBenz();
        automobile bmwMotorcycles = new BMWMotorcycles();
        bmw.run();
        bmwMotorcycles.run();
        IGPS gps = new BMW();
        gps.gps();
        gps = new BMWMotorcycles();
        gps.gps();
    }
}
